package thread_runnable;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;


public class FixedThreadPool{

	public static void main(String[] args) {
		int ThreadCount = 2;	
		ExecutorService exec = Executors.newFixedThreadPool(ThreadCount);
		
		System.out.println("main start  "  + Thread.currentThread().getName());
		for (int i=0; i<3; i++){
			exec.execute(new CountDown());
		}
		
		// 在mac电脑上随便删除几行，再添加注释。其他 的都不要在意。我们这里这么操作是为 制造冲突。
		
	}

}
